//
//  DiscoverModelFirstMain.m
//  XYFMApp
//
//  Created by 岁变 on 16/8/31.
//  Copyright © 2016年 岁变. All rights reserved.
//

#import "DiscoverModelFirstMain.h"
#import "XYMacro.h"

@implementation DiscoverModelFirstMain

- (void)setValue:(id)value forKey:(NSString *)key {
    
    if ([key isEqualToString:@"musics"]) {
        NSMutableArray *mArr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            DiscoverModelFirstTypeContenModel *model = [DiscoverModelFirstTypeContenModel modelWithDictionary:dic];
            [mArr addObject:model];
        }
        self.musics = mArr;
    }
    if ([key isEqualToString:@"channel"]) {
        _channel = [DiscoverModelFirsTypeModel modelWithDictionary:value];
    }
}

@end
